package org.ccay.excel.meta;


import org.springframework.core.io.Resource;

import org.ccay.core.exception.ApplicationException;

/**
 * Excel元数据管理器。
 * 	
 * @author chaowangbang
 * @since Mar 19, 2012
 */
public interface IExcelExportMetaManager {
	
	/** 
	 * 获取resource对应的ExcelMeta
	 * 	
	 * @author chaowangbang
	 * @since Mar 19, 2012
	 * @param resource
	 * @return
	 * @throws XMLStreamException 
	 * @throws IOException 
	 * @throws ExcelApplicationException 
	 * @throws ApplicationException 
	 */
	public ExcelMeta getExcelMeta(Resource resource) throws ApplicationException;
	
	/**
	 * 根据excelType获取ExcelMeta.
	 * 
	 * 规则：
	 * excelType对应的配置文件为config/excelType.excelExport.xml
	 * 	
	 * @author chaowangbang
	 * @since Mar 19, 2012
	 * @param excelType
	 * @return
	 * @throws ApplicationException 
	 */
	public ExcelMeta getExcelMeta(String excelType) throws ApplicationException;
	
}
